const path = require('path')
function resolve(dir) {
    return path.join(__dirname, '.', dir)
}
var srcDir = path.resolve(process.cwd(), 'src')
module.exports = {
    context: srcDir,
    resolve: {
        extensions: ['.js', '.vue', '.json'],
        alias: {
            'vue$': 'vue/dist/vue.esm.js',
            '@': resolve('src'),
            'Config': resolve('/src/config'),
            'Components': resolve('/src/components'),
            'Amui': resolve('/src/weex-amui'),
        }
    }
}
